Skip to content

Conversation

@gnpar
Copy link
Contributor

@gnpar gnpar commented Jan 21, 2026

No description provided.

await currency.connect(admin).mint(anon, _A(100));
expect(await currency.balanceOf(anon)).to.equal(_A(10100));
await expect(currency.connect(admin).burn(anon, _A(150))).not.to.be.reverted;
await currency.connect(admin).burn(anon, _A(150));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya no hay not.to.be.reverted? O lo sacaste porque igual si revierte va a fallar el test igual?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahora es not.to.revert, pero no tenía mucho sentido porque si revierte el test va a fallar y tirar el stack del revert.

El assertion por algún motivo no estaba haciendo await de la transacción, entonces el assert posterior del balance fallaba, con este cambio se soluciona.

Es similar a este issue: NomicFoundation/hardhat#4725

Pero nosotros estamos en la versión 3.0.2 de chai-matchers, debería estar corregido. Tengo que reportarlo.

@gnpar gnpar changed the title [wip] upgrade to hardhat 3 Upgrade to hardhat 3 Jan 28, 2026
@gnpar gnpar merged commit 6701c26 into main Jan 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants